declare const uni: any;
import TUICustomerPluginServer from './server';
import { isMessageInvisible } from './utils/index';
// #ifndef APP || APP-PLUS || MP || H5
import CustomerChatWeb from './components/CustomerServiceChat/index-web.vue';
// #endif

const TUICustomerServer = TUICustomerPluginServer.getInstance();

const isCustomerServicePluginMessage = TUICustomerServer.isCustomerServicePluginMessage.bind(TUICustomerServer);

const setCustomerServiceAccounts = TUICustomerServer.setCustomerServiceAccounts.bind(TUICustomerServer);

const getCustomerServiceAccounts = TUICustomerServer.getCustomerServiceAccounts.bind(TUICustomerServer);

const isCustomerConversation = TUICustomerServer.isCustomerConversation.bind(TUICustomerServer);

let CustomerServiceChat = {};
if (typeof uni === 'undefined') {
  CustomerServiceChat = CustomerChatWeb;
}

export {
  isCustomerServicePluginMessage,
  isMessageInvisible,
  setCustomerServiceAccounts,
  getCustomerServiceAccounts,
  CustomerServiceChat,
  isCustomerConversation
};
